package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.UacGroupRole;
import com.csun.cmny.provider.model.domain.UacRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UacGroupRoleMapper extends Mapper<UacGroupRole> {

    /**
     * 批量添加机构角色
     *
     * @param groupId    the group id
     * @param roleIdList the role id list
     *
     * @return the int.
     */
    Integer batchSaveGroupRole(@Param("groupId") Long groupId,
                               @Param("roleIdList") List<Long> roleIdList);

    /**
     * 根据机构Id查询角色列表
     *
     * @param groupId the group id
     *
     * @return the list.
     */
    List<UacRole> queryRoleListByGroupId(Long groupId);

    /**
     * query not bind role list by group id
     *
     * @param groupId the group id
     *
     * @return the list.
     */
    List<UacRole> queryNotBindRoleListByGroupId(Long groupId);
}